<template>
<div style="width: 1000px;margin: 0 auto">
  <el-card>
    <el-card style="background-color: #bbb9b9;margin-bottom: 30px">
      <el-row :gutter="10">
        <el-col :span="22">
          <h1>添加柜机</h1>
        </el-col>
        <el-col :span="2">
          <i class="el-icon-delete-solid" style="margin-bottom: 50px; color: red">删除</i>
        </el-col>
      </el-row>
    </el-card>
    <el-form ref="form" :model="form" label-width="80px">
      <el-form-item label="柜机编码">
        <el-input v-model="form.name" placeholder="请填写"></el-input>
      </el-form-item>
      <el-form-item label="所在地区">
        <el-input v-model="form.name" placeholder="请填写/_/_"></el-input>
      </el-form-item>
      <el-form-item label="详细地址">
        <el-input v-model="form.name" placeholder="请填写"></el-input>
      </el-form-item>
      <el-form-item label="设备型号">
        <el-select v-model="form.region" placeholder="请选择">
          <el-option label="型号1" value="shanghai"></el-option>
          <el-option label="型号2" value="beijing"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="存藏类型">
        <el-select v-model="form.region" placeholder="请选择">
          <el-option label="冷藏" value="shanghai"></el-option>
          <el-option label="常温" value="beijing"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="MAC">
        <el-input v-model="form.name"></el-input>
      </el-form-item>
      <el-form-item label="安装日期">
        <el-col :span="11">
          <el-date-picker type="date" placeholder="选择日期" v-model="form.date1" style="width: 100%;"></el-date-picker>
        </el-col>
        <el-col class="line" :span="2">-</el-col>
        <el-col :span="11">
          <el-time-picker placeholder="选择时间" v-model="form.date2" style="width: 100%;"></el-time-picker>
        </el-col>
      </el-form-item>
      <el-form-item label="是否开通">
        <el-switch v-model="form.delivery"></el-switch>
      </el-form-item>
      <el-form-item label="开通时间">
        <el-col :span="11">
          <el-date-picker type="date" placeholder="选择日期" v-model="form.date1" style="width: 100%;"></el-date-picker>
        </el-col>
        <el-col class="line" :span="2">-</el-col>
        <el-col :span="11">
          <el-time-picker placeholder="选择时间" v-model="form.date2" style="width: 100%;"></el-time-picker>
        </el-col>
      </el-form-item>
      <el-form-item label="主柜尺寸">
        <el-col :span="6">
          <el-input v-model="form.name" placeholder="请填写宽" style="width: 200px;margin: 0 auto"></el-input>
        </el-col>
        <el-col class="line" :span="3">-</el-col>
        <el-col :span="6">
          <el-input v-model="form.name" placeholder="请填写深" style="width: 200px"></el-input>
        </el-col>
        <el-col class="line" :span="3">-</el-col>
        <el-col :span="6">
          <el-input v-model="form.name" placeholder="请填写高" style="width: 200px"></el-input>
        </el-col>
      </el-form-item>
      <el-form-item label="副柜尺寸">
        <el-col :span="6">
          <el-input v-model="form.name" placeholder="请填写宽" style="width: 200px;margin: 0 auto"></el-input>
        </el-col>
        <el-col class="line" :span="3">-</el-col>
        <el-col :span="6">
          <el-input v-model="form.name" placeholder="请填写深" style="width: 200px"></el-input>
        </el-col>
        <el-col class="line" :span="3">-</el-col>
        <el-col :span="6">
          <el-input v-model="form.name" placeholder="请填写高" style="width: 200px"></el-input>
        </el-col>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSubmit">确认</el-button>
        <el-button>取消</el-button>
      </el-form-item>
    </el-form>
  </el-card>
</div>
</template>

<script>
export default {
  data() {
    return {
      form: {
        name: '',
        region: '',
        date1: '',
        date2: '',
        delivery: false,
        type: [],
        resource: '',
        desc: ''
      }
    }
  },
  methods: {
    onSubmit() {
      console.log('submit!');
    }
  }
}
</script>

<style scoped>

</style>